package com.example.earchartsspringweb.service.Impl;

import com.example.earchartsspringweb.data.LineData;
import com.example.earchartsspringweb.mapper.LineDataMapper;
import com.example.earchartsspringweb.service.LineDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class LineDataServiceImpl implements LineDataService {

    @Autowired
    private LineDataMapper lineDataMapper;
    @Override
    @Transactional(readOnly = true)
    public List<LineData> getAllLineData() {
        return lineDataMapper.selectAll();
    }
}